project(jionotifier)

cmake_minimum_required(VERSION 2.8)

add_compile_options(-std=c++11 -Wall)

set(JXQLIB_PATH ${PROJECT_SOURCE_DIR}/../../build)

set(CMAKE_BUILD_TYPE Debug)

#--------------------------------------------------------------------------------------------------

include_directories(${JXQLIB_PATH}/include)

set(SRC_LIST
	main.cpp
	)

link_directories(${JXQLIB_PATH})

add_executable(${PROJECT_NAME} ${SRC_LIST})

#--------------------------------------------------------------------------------------------------

if(WIN32)
	if(MSVC)
		target_link_libraries(${PROJECT_NAME} ${JXQLIB_PATH}/JXQCore.lib)
		target_link_libraries(${PROJECT_NAME} ${JXQLIB_PATH}/JXQIO.lib)
	else(MSVC)
		target_link_libraries(${PROJECT_NAME} ${JXQLIB_PATH}/libJXQCore.dll)
		target_link_libraries(${PROJECT_NAME} ${JXQLIB_PATH}/libJXQIO.dll)
	endif(MSVC)
elseif(UNIX)
	target_link_libraries(${PROJECT_NAME} ${JXQLIB_PATH}/libJXQCore.so)
	target_link_libraries(${PROJECT_NAME} ${JXQLIB_PATH}/libJXQIO.so)
endif(WIN32)
